package com.education.welco.mapper;


import com.education.welco.pojo.SHomewordClass;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 课后作业查看班级 数据层
 *
 * @author d
 * @date 2020-05-13
 */
@Repository
public interface SHomewordClassMapper {

    /**
     * 查询课后作业查看班级信息
     *
     * @param id 课后作业查看班级ID
     * @return 课后作业查看班级信息
     */
    public SHomewordClass selectSHomewordClassById(Integer id);

    /**
     * 查询课后作业查看班级列表
     *
     * @param sHomewordClass 课后作业查看班级信息
     * @return 课后作业查看班级集合
     */
    public List<SHomewordClass> selectSHomewordClassList(SHomewordClass sHomewordClass);

    /**
     * 新增课后作业查看班级
     *
     * @param sHomewordClass 课后作业查看班级信息
     * @return 结果
     */
    public int insertSHomewordClass(SHomewordClass sHomewordClass);

    /**
     * 修改课后作业查看班级
     *
     * @param sHomewordClass 课后作业查看班级信息
     * @return 结果
     */
    public int updateSHomewordClass(SHomewordClass sHomewordClass);

    /**
     * 删除课后作业查看班级
     *
     * @param id 课后作业查看班级ID
     * @return 结果
     */
    public int deleteSHomewordClassById(Integer id);


    /**
     * 删除课后作业查看班级
     *
     * @param workId 课后作业查看班级ID
     * @return 结果
     */
    public int deleteSHomewordClassByCatalogId(@Param("workId") Integer workId);

    /**
     * 批量删除课后作业查看班级
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSHomewordClassByIds(String[] ids);

    int insertSHomewordClassList(List<SHomewordClass> sHomewordClassList);
}